package com.ruibang.glass.equipment.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;

import com.ruibang.glass.equipment.domain.req.DeviceReq;
import com.ruibang.glass.equipment.entity.Device;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper
public interface DeviceMapper extends CommonMapper<Device> {


    Device getByDeviceId(String deviceId);

    IPage<Device> queryDevicesForPc(IPage<Device> page, @Param("deviceReq") DeviceReq deviceReq);

    List<Device> queryDevices(@Param("deviceReq") DeviceReq deviceReq);

}
